<!--
	创建者：lym
	该文件用于：
	创建时间：2020-01-02 02:52:51
-->
<template>
	<div id="achives_manage">
		<transition name="el-fade-in-linear">
			<enterprise style="float:left;width: 100%;height:calc(100vh - 144px)" v-if="isShowList" @toDetail="toDetail"></enterprise>

		</transition>
		<transition name="el-fade-in-linear">
			<el-container v-if="!isShowList" class="RCIM-archives_view">
				<div
					class="smailbg"
					:class="{ showSmallBtn: smallStyle }"
					@click="changeShowBar()"
				>
					<span class="iconfont icondiandian"></span>
				</div>
				<el-aside
					class="kd-left-tree-wrap"
					:class="{ showSmallWrap: showTree }"
				>
					<div class="unchange_tree_wrap">
						<archives-tree
							@handleEvent="treeHandle"
							:data="menus"
							:setDefExtendId="setDefExtendId"
						></archives-tree>
					</div>
				</el-aside>
				<el-container>
					<el-main>
						<el-header style=" font-size: 12px">
							<el-page-header style="margin-top: 26px;float:left;" @back="returnList" :content="content.name"></el-page-header>
							<!-- <el-button v-if="content.name !== '企业信息' && content.name !== '许可证信息'" style="margin-top: 20px;float: right" icon="el-icon-plus" @click="showDetail = !showDetail" type="primary">新增</el-button> -->
							<!-- <el-button v-if="content.name == '企业信息' && entData && !editDetail" style="margin-top: 20px;float: right" icon="el-icon-edit" @click="showDetail = !showDetail;editDetail=true" type="primary">查看</el-button>
							<el-button v-if="content.name == '许可证信息'" style="margin-top: 20px;float: right" icon="el-icon-edit" @click="handlePernit" type="primary">查看</el-button> -->
						</el-header>
						<components :is="content.id" v-model="entData" :showDetail="showDetail" :editDetail="editDetail" @closeDetail="returnList" ref="compents"></components>
					</el-main>
				</el-container>
			</el-container>
		</transition>
	</div>
</template>

<script>
import RcimArchives from "./index.js";
export default RcimArchives;
</script>

<style lang="scss" scoped>
@import "./index.scss";
</style>
